﻿@{
    Layout = "../Shared/_ClassifierLayout.cshtml";
}
@using Cnm.Models.ViewModels
@using Kendo.Mvc.UI
@model int

<div class="classifier-ad-list">

    @(Html.Kendo().TabStrip()
          .Name("tabstrip")
          .Items(tabstrip =>
          {
              tabstrip.Add().Text("Tất cả")
                  .Selected(true)
                  .Content(@<text>
                    @Html.Partial("../Partials/_ClassifierGrid", new PostConditionViewModel { RegionId = Model })
                </text>);

              tabstrip.Add().Text("Cá nhân")
                  .Content(@<text>
                    @Html.Partial("../Partials/_ClassifierGrid", new PostConditionViewModel { RegionId = Model, TitularId = (int)TitularDesc.Personal })
                </text>);
              tabstrip.Add().Text("Công ty")
                  .Content(@<text>
                    @Html.Partial("../Partials/_ClassifierGrid", new PostConditionViewModel { RegionId = Model, TitularId = (int)TitularDesc.Company })
                </text>);
          })
    )
</div>